-
Notifications
You must be signed in to change notification settings - Fork 1
[LLDB][GPU] Add a GPUActions option for sync initialization #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I'm experimenting with initializating asynchronously and I think it's a good idea to make sync initialization an option in the GPU Actions. Given that AMD was using this by default, I modified it accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
connection_info.connect_url, GetPluginNameStatic(), debugger, | ||
*debugger.GetAsyncOutputStream(), gpu_target_sp.get(), error); | ||
ProcessSP process_sp = | ||
gpu_action.wait_synchronously_for_gpu_to_initialize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get this bool from connection_info
:
connection_info.synchronous ? ...
@@ -386,6 +386,7 @@ std::optional<GPUActions> LLDBServerPluginAMDGPU::NativeProcessIsStopping() { | |||
"launched successfully"); | |||
} | |||
actions.connect_info = CreateConnection(); | |||
actions.wait_synchronously_for_gpu_to_initialize = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be:
actions.connect_info ->synchronous = true;
I'm experimenting with initializating asynchronously and I think it's a good idea to make sync initialization an option in the GPU Actions. Given that AMD was using this by default, I modified it accordingly.